package com.otitan.la.forest.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.otitan.la.forest.system.dto.ApplicationDTO;
import com.otitan.la.forest.system.entity.ApplicationEntity;
import com.otitan.webapp.framework.basepro.model.DataResult;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * 应用表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-09-15 14:51:37
 */
public interface ApplicationService extends IService<ApplicationEntity> {
    /**
     * 新增
     * @return
     */
    DataResult add(ApplicationEntity application, BindingResult bindingResult);

    /**
     * 批量删除
     * @return
     */
    DataResult batchDelete(List<String> ids);

    /**
     * 修改
     * @return
     */
    DataResult editor(ApplicationEntity application, BindingResult bindingResult);

    /**
     * 列表查询（分页）
     * @return
     */
    DataResult findPageData(long page, long size, ApplicationDTO application);

    /**
     * 根据ID查询
     * @return
     */
    DataResult findOne(String id);

    DataResult getAppList();
    /**
     * 根据用户ID查询用户菜单
     * @author jiachangsen
     * @param [userId]
     * @return java.util.List<com.otitan.la.forest.system.entity.ApplicationEntity>
     * @exception
     * @date 2020/09/18 15:31
     */
    List<ApplicationEntity> findUserApplicationInfo(String userId);
}

